package cn.wolfcode.wolf2w.query;


import lombok.Getter;
import lombok.Setter;


@Setter
@Getter
public class TravelQuery extends QueryObject{

    //  状态
    private int state = 2;

    //  目的地id
    private String destId;

    //  旅游天数
    private int dayType;

    public TravelCondition getDays(){
        return TravelCondition.TRAVEL_DAYS.get(dayType);
    }

    //  人均消费
    private int perExpendType;

    public TravelCondition getPerExpends(){
        return TravelCondition.TRAVEL_PRE_EXPENDS.get(perExpendType);
    }

    //  排序
    private int orderType = -1;
}
